package com.kt.mes.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.kt.mes.mapper.TraceDataMapper;
import com.kt.mes.domain.TraceData;
import com.kt.mes.service.ITraceDataService;

/**
 * 产品追踪Service业务层处理
 * 
 * @author lzc
 * @date 2021-06-10
 */
@Service
public class TraceDataServiceImpl implements ITraceDataService 
{
    @Autowired
    private TraceDataMapper traceDataMapper;

    /**
     * 查询产品追踪
     * 
     * @param id 产品追踪ID
     * @return 产品追踪
     */
    @Override
    public TraceData selectTraceDataById(Long id)
    {
        return traceDataMapper.selectTraceDataById(id);
    }

    /**
     * 查询产品追踪列表
     * 
     * @param traceData 产品追踪
     * @return 产品追踪
     */
    @Override
    public List<TraceData> selectTraceDataList(TraceData traceData)
    {
        return traceDataMapper.selectTraceDataList(traceData);
    }

    /**
     * 新增产品追踪
     * 
     * @param traceData 产品追踪
     * @return 结果
     */
    @Override
    public int insertTraceData(TraceData traceData)
    {
        return traceDataMapper.insertTraceData(traceData);
    }

    /**
     * 修改产品追踪
     * 
     * @param traceData 产品追踪
     * @return 结果
     */
    @Override
    public int updateTraceData(TraceData traceData)
    {
        return traceDataMapper.updateTraceData(traceData);
    }

    /**
     * 批量删除产品追踪
     * 
     * @param ids 需要删除的产品追踪ID
     * @return 结果
     */
    @Override
    public int deleteTraceDataByIds(Long[] ids)
    {
        return traceDataMapper.deleteTraceDataByIds(ids);
    }

    /**
     * 删除产品追踪信息
     * 
     * @param id 产品追踪ID
     * @return 结果
     */
    @Override
    public int deleteTraceDataById(Long id)
    {
        return traceDataMapper.deleteTraceDataById(id);
    }
}
